<!-- Flex布局实现 -->

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .container {
            display: flex;
            width: 100%;
            height: 300px;
        }

        .left {
            order: 0;
            width: 200px;
            background-color: beige;
        }

        .center {
            order: 1;
            flex: 1;
            background-color: bisque;
        }

        .right {
            order: 2;
            width: 300px;
            background-color: cornflowerblue;
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 相对上个例子，仅把center提到最前面，效果一样，但是center最早加载 -->
        <div class="center">center</div>
        <div class="left">left</div>
        <div class="right">right</div>
    </div>
</body>

</html>